package cn.cloudreal.cbms.unit.service.impl;

import java.util.List;
import java.util.Map;

import cn.cloudreal.cbms.common.util.PageBean;
import cn.cloudreal.cbms.unit.dao.UnitDao;
import cn.cloudreal.cbms.unit.service.UnitService;
import cn.cloudreal.cbms.vo.Unit;

public class UnitServiceImpl implements UnitService {

	/** dao */
	private UnitDao unitDao;

	public void setUnitDao(UnitDao unitDao) {
		this.unitDao = unitDao;
	}

	public List<Unit> getUnits(Map condition, PageBean page) {
		// TODO Auto-generated method stub
		return unitDao.getUnits(condition, page);
	}

	public int getUnitsCount(Map condition) {
		// TODO Auto-generated method stub
		return unitDao.getUnitsCount(condition);
	}

	public void deleteUnit(Unit unit) {
		// TODO Auto-generated method stub
		unitDao.deleteUnit(unit);
	}

	public Unit detailUnit(Unit unit) {
		// TODO Auto-generated method stub
		return unitDao.detailUnit(unit);
	}

	public void modifyUnit(Unit unit) {
		// TODO Auto-generated method stub
		unitDao.modifyUnit(unit);
	}

	public void addUnit(Unit unit) {
		// TODO Auto-generated method stub
		unitDao.addUnit(unit);
	}

}
